package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IDeviceDataService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component("cleanData")
public class CleanData {

    @Autowired
    private IDeviceDataService deviceDataService;

    public void data(){
        log.info("开始清理数据");
        deviceDataService.cleanOlData(1);
    }
}
